/*
 * @Author: 张久冬
 * @Date: 2022-01-03 15:54:12
 * @
# Description:
 */
import { ref } from 'vue'
import PageContent from '@/componments/page-content'

export function usePageSearch() {
  const pageContentRef = ref<InstanceType<typeof PageContent>>()
  const reserBtnClick = () => {
    console.log('重置页面', pageContentRef)
    pageContentRef.value?.getPageData()
  }
  const queryBtnClick = (queryInfo) => {
    console.log('查询页面1', queryInfo)
    pageContentRef.value?.getPageData(queryInfo)
  }
  return [reserBtnClick, queryBtnClick, pageContentRef]
}
